package com.practice.dto;

import lombok.Data;

/**
 *
 */
@Data
public class CommandDTO {

    /**
     * 点位id
     */
    private String code;

    /**
     * 命令  OPEN   CLOSED
     */
    private String command;

    /**
     * 构造器
     * @param code
     * @param command
     * @return
     */
    public static CommandDTO init(String code, String command) {
        CommandDTO dto = new CommandDTO();
        dto.code = code;
        dto.command = command;
        return dto;
    }

}